package chapter11;

/**
 * Created by V5470-I5 on 2016/4/11.
 */
public class TortoiseHareRace2 {
    public static void main(String[] args) {
        Tortoise tortoise = new Tortoise(10);
        Hare hare =new Hare(10);
        Thread tortoiseThread=new Thread(tortoise);
        Thread hareThread= new Thread(hare);
        tortoiseThread=new Thread(hare);
        tortoiseThread.start();
        hareThread.start();
    }
}
